package com.qiaofang.dataprocessing.dao.impl;

import com.qiaofang.dataprocessing.dao.MessageDao;
import com.qiaofang.dataprocessing.dao.mapper.MessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @Author: youqing.yang
 * @Create: 2021/04/01 10:06
 * @Description:
 **/
@Repository("messageDao")
public class MessageDaoImpl implements MessageDao {

    @Autowired
    private MessageMapper messageMapper;

    @Override
    public int deleteMessageWeekAgo(Date sentDate) {
        return messageMapper.deleteMessageWeekAgo(sentDate);
    }
}
